﻿<nav class="menu-contain">
    <button type="button" class="menu-toggle-button" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </button>
    <div class="menu-toggle-contain">
        <ul class="main-menu my-ul-menu">
            @if (User.IsInRole("Admin"))
            {
                @*<li>@Html.ActionLink("Home", "Index", "Home")</li>
                <li>@Html.ActionLink("API", "Index", "Help")</li>*@
                @*<li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Tracking</a>
                    <ul>
                        <li>@Html.ActionLink("Message", "Index", "Message")</li>
                    </ul>
                </li>*@
                <li>
                    @Html.ActionLink("Admin", "Index", "Admin")
                </li>
            }
        </ul>
        @*@Html.RenderAction("AccountPartial", "Account")*@

        <ul class="user-menu my-ul-menu">
            @if (Request.IsAuthenticated)
            {
                <li>
                    <a>Chào @System.Web.HttpContext.Current.User.Identity.Name</a>
                    <ul>
                        <li>@Html.ActionLink("Đổi mật khẩu", "ChangePassword", "Account")</li>
                        <li>@Html.ActionLink("Thoát", "Logoff", "Account")</li>
                    </ul>
                </li>
            }
            else
            {
                <li>
                    @Html.ActionLink("Login", "Login", "Account")
                    <ul>
                        @Html.ActionLink("Register", "Register", "Account") 
                    </ul>
                </li>
            }
        </ul>

    </div>
</nav>
